<?php 
session_start();
if((isset($_SESSION['username'])) && (isset($_SESSION['level'])))
{
	if($_SESSION['level']==2)
		include_once 'layout_admin.php';
	else include_once 'layout_user.php';
}
else{
	include_once 'login.php';
}
//ini_set('display_errors',0); 
//error_reporting(0);
?>